﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ZLSOFT.HIS.ZLMediCare {
    
    public partial class FrmIdentify : Form {
        public int showtype;
        public FrmIdentify() {
            InitializeComponent();
        }

        private void btn_ok_Click(object sender, EventArgs e) {
            if (rab_sysyb.Checked) {
                rab_lnsyb.Checked = false;
                rdb_ec.Checked = false;
                this.showtype = 1;
            }
             if (rab_lnsyb.Checked) {
                rab_sysyb.Checked = false;
                rdb_ec.Checked = false;
                this.showtype = 2;
            } 
             if (rdb_ec.Checked) {
                rab_lnsyb.Checked = false;
                rab_sysyb.Checked = false;  
                this.showtype = 3;
            }
            if (!rab_lnsyb.Checked && !rab_sysyb.Checked && !rdb_ec.Checked) {
                MessageBox.Show("请选择医保读卡类型", "读卡提示");
                return;
            }
            this.DialogResult = DialogResult.OK;
        }

        private void btn_cnal_Click(object sender, EventArgs e) {
            this.Close();
        }

        private void FrmIdentify_Load(object sender, EventArgs e) {
            //rab_sysyb.Checked = true;
        }
    }
}
